<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        require '../02-classes/class/ReplicaClonagem.php';
        $readA = new ReplicaClonagem("posts", "categoria = 'noticias", "ORDER BY data DESC");
        $readA->Ler();
        $readA->setTermos("categoria = 'internet'");
        
        $readB = clone($readA);
        $readB->setTabela('facebook');
        $readB->setTermos("categoria = 'rede sociais'");
        
        $readC = clone($readA);
        $readC->setTabela('comentarios');
        $readC->setTermos("post = 25");
        
        $readA->Ler();
        $readB->Ler();
        $readC->Ler();
        var_dump($readA, $readB, $readC);
        ?>
    </body>
</html>
